package com.charley.icloud.swagger.controller;

import com.charley.icloud.swagger.model.Notice;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/notices")
@Tag(name = "公告相关接口", description = "公告相关接口")
public class NoticeController {

    /**
     * 查询最新的一条公告
     *
     * @return 公告列表
     */
    @GetMapping("/newest")
    @Operation(summary  = "查询最新的一条公告", description = "用于：公告")
    public Notice findNewest() {
        return new Notice();
    }

}
